<?php
//dezend by http://www.yunlu99.com/
if (!defined('IN_IA')) {
	exit('Access Denied');
}

class CommissionMobileLoginPage extends PluginMobileLoginPage
{
	public function __construct()
	{
		parent::__construct();
		global $_W;
		global $_GPC;
		if ($_W['action'] != 'register' && $_W['action'] != 'myshop' && $_W['action'] != 'share') {
			$member = m('member')->getMember($_W['openid']);
			if ($member['isagent'] != 1 || $member['status'] != 1 || !empty($member['agentblack'])) {
				header('location:' . mobileUrl('commission/register'));
				exit();
			}
		}
	}
}

?>
